package br.com.chat.model;

import java.io.PrintWriter;
import java.io.Serializable;
import java.net.Socket;

import br.com.chat.controller.impl.Mensagem;

public class Cliente implements Serializable {

	/**
	 * <b>Classe modelo</b>
	 * 
	 * @see Serializable
	 */
	private static final long serialVersionUID = 3292238885714956892L;
	private String nickname;
	private String email;
	private Socket socket;
	private PrintWriter writer;
	private Mensagem mensagem;

	public Cliente() {
		super();
	}

	public Mensagem getMensagem() {
		return mensagem;
	}

	public void setMensagem(Mensagem mensagem) {
		this.mensagem = mensagem;
	}

	public PrintWriter getWriter() {
		return writer;
	}

	public void setWriter(PrintWriter writer) {
		this.writer = writer;
	}

	public void setSocket(Socket socket) {
		this.socket = socket;
	}

	public Cliente(Socket socket) {
		this.socket = socket;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Socket getSocket() {
		return socket;
	}

}
